import csv


def csv_operate_1():
    with open("example.csv") as file:
        reader_instance = csv.reader(file)
        exampleData = list(reader_instance)
        print(exampleData)


def csv_operate_for():
    with open("example.csv") as file:
        example_reader = csv.reader(file)
        for row in example_reader:
            print("Row #" + str(example_reader.line_num) + " " + str(row))


def csv_operate_write():
    with open("example.csv", "a+", newline="") as outputFile:
        output_write = csv.writer(outputFile, delimiter="\t")
        output_write.writerow(["xiaohua", "women", "27"])


if __name__ == "__main__":
    csv_operate_write()
    csv_operate_for()
